import Vue from 'vue';
import Loading from './Loading.vue';

const LoadingConstructor=Vue.extend(Loading);

const serve=()=>{
    let  loadingInstance=new LoadingConstructor();
    loadingInstance.$mount(document.createElement('div'));
    document.body.appendChild(loadingInstance.$el);
    return loadingInstance
}

export default serve;